cnt=0
for i in input().split():
    cnt=cnt+1
print(cnt)